.class public abstract Lcom/instagram/creation/video/f/as;
.super Lcom/instagram/creation/video/gl/aa;
.source "VideoScrubberFragmentBase.java"


# instance fields
.field final synthetic a:Lcom/instagram/creation/video/f/ap;

.field private b:Z

.field private c:Z

.field private d:Lcom/instagram/creation/video/h/e;


# direct methods
.method public constructor <init>(Lcom/instagram/creation/video/f/ap;Lcom/instagram/creation/video/gl/l;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    const/4 v0, 0x0

    .line 188
    iput-object p1, p0, Lcom/instagram/creation/video/f/as;->a:Lcom/instagram/creation/video/f/ap;

    .line 189
    invoke-direct {p0, p2}, Lcom/instagram/creation/video/gl/aa;-><init>(Lcom/instagram/creation/video/gl/l;)V

    .line 183
    iput-boolean v0, p0, Lcom/instagram/creation/video/f/as;->b:Z

    .line 184
    iput-boolean v0, p0, Lcom/instagram/creation/video/f/as;->c:Z

    .line 190
    new-instance v0, Lcom/instagram/creation/video/h/e;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Lcom/instagram/creation/video/h/e;-><init>(I)V

    iput-object v0, p0, Lcom/instagram/creation/video/f/as;->d:Lcom/instagram/creation/video/h/e;

    .line 191
    iget-object v0, p0, Lcom/instagram/creation/video/f/as;->d:Lcom/instagram/creation/video/h/e;

    invoke-virtual {p2, v0}, Lcom/instagram/creation/video/gl/l;->a(Lcom/instagram/creation/video/gl/a;)V

    .line 192
    return-void
.end method

.method private q()V
    .locals 3

    .prologue
    .line 276
    iget-object v0, p0, Lcom/instagram/creation/video/f/as;->a:Lcom/instagram/creation/video/f/ap;

    iget-object v1, v0, Lcom/instagram/creation/video/f/ap;->f:Ljava/lang/Object;

    monitor-enter v1

    .line 277
    :try_start_0
    iget-object v0, p0, Lcom/instagram/creation/video/f/as;->a:Lcom/instagram/creation/video/f/ap;

    iget-boolean v0, v0, Lcom/instagram/creation/video/f/ap;->e:Z

    if-nez v0, :cond_0

    .line 278
    iget-object v0, p0, Lcom/instagram/creation/video/f/as;->a:Lcom/instagram/creation/video/f/ap;

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/as;->h()Z

    move-result v2

    iput-boolean v2, v0, Lcom/instagram/creation/video/f/ap;->e:Z

    .line 279
    iget-object v0, p0, Lcom/instagram/creation/video/f/as;->a:Lcom/instagram/creation/video/f/ap;

    iget-boolean v0, v0, Lcom/instagram/creation/video/f/ap;->e:Z

    if-nez v0, :cond_0

    .line 280
    iget-object v0, p0, Lcom/instagram/creation/video/f/as;->a:Lcom/instagram/creation/video/f/ap;

    invoke-static {v0}, Lcom/instagram/creation/video/f/ap;->d(Lcom/instagram/creation/video/f/ap;)Landroid/os/Handler;

    move-result-object v0

    new-instance v2, Lcom/instagram/creation/video/f/av;

    invoke-direct {v2, p0}, Lcom/instagram/creation/video/f/av;-><init>(Lcom/instagram/creation/video/f/as;)V

    invoke-virtual {v0, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 289
    :cond_0
    monitor-exit v1

    .line 290
    return-void

    .line 289
    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0
.end method

.method private r()V
    .locals 3

    .prologue
    .line 293
    iget-object v0, p0, Lcom/instagram/creation/video/f/as;->a:Lcom/instagram/creation/video/f/ap;

    iget-object v1, v0, Lcom/instagram/creation/video/f/ap;->f:Ljava/lang/Object;

    monitor-enter v1

    .line 294
    :try_start_0
    iget-object v0, p0, Lcom/instagram/creation/video/f/as;->a:Lcom/instagram/creation/video/f/ap;

    iget-boolean v0, v0, Lcom/instagram/creation/video/f/ap;->e:Z

    if-eqz v0, :cond_0

    .line 295
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/as;->j()V

    .line 296
    iget-object v0, p0, Lcom/instagram/creation/video/f/as;->a:Lcom/instagram/creation/video/f/ap;

    const/4 v2, 0x0

    iput-boolean v2, v0, Lcom/instagram/creation/video/f/ap;->e:Z

    .line 298
    :cond_0
    monitor-exit v1

    .line 299
    return-void

    .line 298
    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0
.end method

.method private s()V
    .locals 2

    .prologue
    .line 314
    iget-object v0, p0, Lcom/instagram/creation/video/f/as;->a:Lcom/instagram/creation/video/f/ap;

    invoke-static {v0}, Lcom/instagram/creation/video/f/ap;->d(Lcom/instagram/creation/video/f/ap;)Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/instagram/creation/video/f/aw;

    invoke-direct {v1, p0}, Lcom/instagram/creation/video/f/aw;-><init>(Lcom/instagram/creation/video/f/as;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 344
    return-void
.end method


# virtual methods
.method public final a()Lcom/instagram/creation/video/h/e;
    .locals 1

    .prologue
    .line 212
    iget-object v0, p0, Lcom/instagram/creation/video/f/as;->d:Lcom/instagram/creation/video/h/e;

    return-object v0
.end method

.method public b()V
    .locals 3

    .prologue
    .line 196
    iget-object v0, p0, Lcom/instagram/creation/video/f/as;->a:Lcom/instagram/creation/video/f/ap;

    invoke-virtual {v0}, Lcom/instagram/creation/video/f/ap;->j()Landroid/support/v4/app/j;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/i/a;

    invoke-interface {v0}, Lcom/instagram/creation/video/i/a;->i()V

    .line 197
    iget-object v0, p0, Lcom/instagram/creation/video/f/as;->a:Lcom/instagram/creation/video/f/ap;

    iget-object v1, p0, Lcom/instagram/creation/video/f/as;->a:Lcom/instagram/creation/video/f/ap;

    invoke-virtual {v1}, Lcom/instagram/creation/video/f/ap;->Z()Lcom/instagram/pendingmedia/model/c;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/pendingmedia/model/c;->H()Lcom/instagram/pendingmedia/model/a;

    move-result-object v1

    iput-object v1, v0, Lcom/instagram/creation/video/f/ap;->a:Lcom/instagram/pendingmedia/model/a;

    .line 199
    invoke-direct {p0}, Lcom/instagram/creation/video/f/as;->q()V

    .line 201
    iget-object v0, p0, Lcom/instagram/creation/video/f/as;->a:Lcom/instagram/creation/video/f/ap;

    invoke-virtual {v0}, Lcom/instagram/creation/video/f/ap;->Z()Lcom/instagram/pendingmedia/model/c;

    move-result-object v0

    .line 202
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/as;->l()Lcom/instagram/creation/video/gl/l;

    move-result-object v1

    sget-object v2, Lcom/instagram/creation/video/gl/q;->b:Lcom/instagram/creation/video/gl/q;

    invoke-virtual {v1, v2}, Lcom/instagram/creation/video/gl/l;->a(Lcom/instagram/creation/video/gl/q;)V

    .line 203
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/as;->a()Lcom/instagram/creation/video/h/e;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/creation/video/f/as;->a:Lcom/instagram/creation/video/f/ap;

    invoke-virtual {v2}, Lcom/instagram/creation/video/f/ap;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->e()I

    move-result v0

    invoke-static {v2, v0}, Lcom/instagram/creation/video/e/q;->a(Landroid/content/Context;I)Lcom/instagram/creation/video/e/p;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/instagram/creation/video/h/e;->a(Lcom/instagram/creation/video/e/p;)V

    .line 205
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/as;->a()Lcom/instagram/creation/video/h/e;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/creation/video/f/as;->a:Lcom/instagram/creation/video/f/ap;

    iget-object v1, v1, Lcom/instagram/creation/video/f/ap;->a:Lcom/instagram/pendingmedia/model/a;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/h/e;->b(Lcom/instagram/pendingmedia/model/a;)V

    .line 207
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/as;->i()V

    .line 208
    return-void
.end method

.method public final c()V
    .locals 0

    .prologue
    .line 267
    invoke-direct {p0}, Lcom/instagram/creation/video/f/as;->r()V

    .line 268
    return-void
.end method

.method public final d()V
    .locals 0

    .prologue
    .line 272
    invoke-direct {p0}, Lcom/instagram/creation/video/f/as;->q()V

    .line 273
    return-void
.end method

.method public e()V
    .locals 4

    .prologue
    .line 248
    iget-boolean v0, p0, Lcom/instagram/creation/video/f/as;->c:Z

    if-eqz v0, :cond_0

    .line 249
    invoke-direct {p0}, Lcom/instagram/creation/video/f/as;->s()V

    .line 250
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/as;->l()Lcom/instagram/creation/video/gl/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/creation/video/gl/l;->e()V

    .line 263
    :goto_0
    return-void

    .line 253
    :cond_0
    iget-object v0, p0, Lcom/instagram/creation/video/f/as;->a:Lcom/instagram/creation/video/f/ap;

    invoke-static {v0}, Lcom/instagram/creation/video/f/ap;->d(Lcom/instagram/creation/video/f/ap;)Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/instagram/creation/video/f/au;

    invoke-direct {v1, p0}, Lcom/instagram/creation/video/f/au;-><init>(Lcom/instagram/creation/video/f/as;)V

    const-wide/16 v2, 0x32

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    goto :goto_0
.end method

.method public final f()V
    .locals 2

    .prologue
    .line 217
    invoke-direct {p0}, Lcom/instagram/creation/video/f/as;->r()V

    .line 219
    iget-object v0, p0, Lcom/instagram/creation/video/f/as;->a:Lcom/instagram/creation/video/f/ap;

    invoke-static {v0}, Lcom/instagram/creation/video/f/ap;->b(Lcom/instagram/creation/video/f/ap;)Lcom/instagram/ui/a/d;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 220
    iget-object v0, p0, Lcom/instagram/creation/video/f/as;->a:Lcom/instagram/creation/video/f/ap;

    invoke-static {v0}, Lcom/instagram/creation/video/f/ap;->d(Lcom/instagram/creation/video/f/ap;)Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/instagram/creation/video/f/at;

    invoke-direct {v1, p0}, Lcom/instagram/creation/video/f/at;-><init>(Lcom/instagram/creation/video/f/as;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 229
    :cond_0
    return-void
.end method

.method public final g()Z
    .locals 3

    .prologue
    const/4 v0, 0x1

    .line 234
    iget-boolean v1, p0, Lcom/instagram/creation/video/f/as;->c:Z

    if-eqz v1, :cond_0

    .line 243
    :goto_0
    return v0

    .line 237
    :cond_0
    iget-boolean v1, p0, Lcom/instagram/creation/video/f/as;->b:Z

    if-eqz v1, :cond_1

    .line 238
    const-string v1, "VideoScrubberFragmentBase"

    const-string v2, "Saving!"

    invoke-static {v1, v2}, Lcom/facebook/e/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 239
    iput-boolean v0, p0, Lcom/instagram/creation/video/f/as;->c:Z

    .line 240
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/as;->l()Lcom/instagram/creation/video/gl/l;

    move-result-object v0

    const/16 v1, 0x280

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/gl/l;->a(I)V

    .line 241
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/as;->l()Lcom/instagram/creation/video/gl/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/creation/video/gl/l;->d()V

    .line 243
    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method protected abstract h()Z
.end method

.method protected abstract i()V
.end method

.method protected abstract j()V
.end method

.method protected k()V
    .locals 2

    .prologue
    .line 308
    const-string v0, "VideoScrubberFragmentBase"

    const-string v1, "Saving Poster Frame"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 309
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/as;->l()Lcom/instagram/creation/video/gl/l;

    move-result-object v0

    sget-object v1, Lcom/instagram/creation/video/gl/q;->a:Lcom/instagram/creation/video/gl/q;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/gl/l;->a(Lcom/instagram/creation/video/gl/q;)V

    .line 310
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/creation/video/f/as;->b:Z

    .line 311
    return-void
.end method
